//
//  MyTools.m
//  MyTest
//
//  Created by zhiyou on 16-4-15.
//  Copyright (c) 2016年 wangyang. All rights reserved.
//

#import "MyTools.h"
#import "Zone.h"
#import "Recommond.h"
@implementation MyTools

//首页 晒物界面Banner数组
+ (NSMutableArray *)getBannerWithArray:(NSArray *)arr
{
    NSMutableArray *array = [[NSMutableArray alloc] init];
    for (NSDictionary *dic in arr) {
        Banner *banner = [[Banner alloc] initWithDictionary:dic];
        [array addObject:banner];
    }
    return array;
}
// 首页Zone数组
+ (NSMutableArray *)getZoneWithArray:(NSArray *)arr
{
    NSMutableArray *array = [[NSMutableArray alloc] init];
    for (NSDictionary *dic in arr) {
        Zone *zone = [[Zone alloc] initWithDictionary:dic];
        [array addObject:zone];
    }
    return array;
}
//晒物界面Recommond数组
+ (NSMutableArray *)getRecommondWithArray:(NSArray *)arr
{
    NSMutableArray *array = [[NSMutableArray alloc] init];
    for (NSDictionary *dic in arr) {
        Recommond *recommond = [[Recommond alloc] initWithDictionary:dic];
        [array addObject:recommond];
    }
    return array;
}

+ (NSMutableArray *)getFindWithArr:(NSArray *)arr
{
    NSMutableArray *array = [[NSMutableArray alloc] init];
    for (NSDictionary *dic in arr) {
        Find *find = [[Find alloc] initWithDictionary:dic];
        [array addObject:find];
    }
    return array;
}

@end
